package com.grablist.feihu.grablist.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by admin on 2017/12/7.
 */

public class CityInfo  implements IPickerViewData {


    /**
     * name : 常州
     * city : [{"name":"天宁区","area":["南大街","文化宫","九州新世界","火车站"]},{"name":"新北区","area":["万达","恐龙园","月星环球港","新区公园"]},{"name":"武进区","area":["万达广场","吾悦广场","湖塘乐购","大学城","花园街","东方大道","横山桥"]},{"name":"钟楼区","area":["北大街","莱蒙都会","荆川公园","西新桥","邹区","青枫公园"]}]
     */

    private String name;
    private List<CityBean> city;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CityBean> getCity() {
        return city;
    }

    public void setCity(List<CityBean> city) {
        this.city = city;
    }

    @Override
    public String getPickerViewText() {
        return this.name;
    }

    public static class CityBean {
        /**
         * name : 天宁区
         * area : ["南大街","文化宫","九州新世界","火车站"]
         */

        private String name;
        private List<String> area;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<String> getArea() {
            return area;
        }

        public void setArea(List<String> area) {
            this.area = area;
        }
    }
}
